package com.bdqn.ch01.conteller;

import com.bdqn.ch01.service.DemosService;
import jakarta.annotation.Resource;
import org.junit.jupiter.api.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest
public class DemoServiceTester {
    @Resource
    private DemosService demosService;

    @Test
    public void testSayHello(){
        String msg = demosService.sayHello();
        System.out.println("msg:"+msg);
    }
}
